package com.example.demo33.mode;

import com.example.demo33.entity.InviteCode;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface InviteCodeRepository extends JpaRepository<InviteCode, Long> {
    Optional<InviteCode> findByCode(String code);
    boolean existsByCode(String code);
}